package com.usian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author sjt
 * @Date 2023/7/26 16:17
 * @PackageName: cn.jiyun.entity   Orders
 */
@TableName("t_order")
@Data
public class Orders {
    @TableId(value = "oid",type = IdType.AUTO)
    private Integer oid;

    private String oname;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date createdtime;
    private Integer count;
    private String price;
}
